package com.gu.service;

import com.github.pagehelper.PageInfo;
import com.gu.VO.PropertyVO;
import com.gu.entity.ApartmentDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.service
 * @ClassName: AparrtmentService
 * @Author: gusongliao
 * @Description: 公寓服务层
 * @createDate 2021/01/27 17:03
 */
public interface ApartmentService {

    List<String> getNotUsedApartmentRoomNumber(ApartmentDO entity);

    List<String> getUsedApartmentRoomNumber(ApartmentDO entity);

    PageInfo listApartment(Integer pageNum, Integer pageSize,ApartmentDO apartmentDO);

    int updateApartment(Integer userId,Integer id);

    int updateApartmentUserId(Integer userId,Integer id);

    List<PropertyVO> getApartmentByUser (Integer userId);
}
